using ReflectionStudio.Core.Events;
using System;
using System.Collections.Generic;
using System.Data;
using WPFExcelReport.Helpers;
namespace WPFExcelReport
{
    public partial class VWBBST
    {

        public DataSet QITXWBB(Dictionary<string, object> pm)
        {
            string QITABLE = pm["QITABLE"].ToString();
            dwData = TBMain.NewRow();
            dwData["WBBMANDANT"] = app.Mandant;
            dwData["WBBWMNRKRS"] = QITABLE.Substring(0,2);
            dwData["WBBWMLFDNR"] = QITABLE.Substring(2,4); 
            string _STKNR = pm["STKNR"].ToString();
            string _ART = pm["ART"].ToString();
            string _ABAUF = pm["ABAUF"].ToString();
            dwData["WBBSTKNR"] = " AND WBBSTKNR LIKE '" + _STKNR.Trim() + "%'";
            if (_STKNR.Trim().Length > 3)
                dwData["WBBSTKNR"] = " AND WBBSTKNR = '" + _STKNR + "'";
            dwData["WBBART"] = " AND WBBART||WBBVAR||WBBFARBE LIKE '" + _ART.Trim() + "%'";
            dwData["WBBRWKRS"] = " AND WBBAUFKRS||WBBAUFLFD||WBBAUFPOS LIKE '" + _ABAUF.Trim() + "%'";
            SResult = QWBPRQI(dwData);
            return SResult; 
        }
        public void RVDEFAULT(Dictionary<string, object> pm)
        {
            VWBF.RVDEFAULT(pm);
        } 
    }
}
 